<%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2023/4/1
  Time: 15:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Request对象</title>
</head>
<body>
<h2>Request对象的第一组方法</h2>
<%
    String method = request.getMethod();
    String authType = request.getAuthType();
    String remoteUser = request.getRemoteUser();
    String remoteAddr = request.getRemoteAddr();
    int remotePort = request.getRemotePort();
    String serverAddr = request.getServerName();
    int serverPort = request.getServerPort();
    String uri = request.getRequestURI();
    out.print("请求方法:" + method + "<br/>");
    out.print("请求类型:" + authType + "<br/>");
    out.print("客户端名称:" + remoteUser + "<br/>");
    out.print("客户端IP:" + remoteAddr + "<br/>");
    out.print("客户端端口:" + remotePort + "<br/>");
    out.print("服务器IP:" + serverAddr + "<br/>");
    out.print("服务器端口:" + serverPort + "<br/>");
    out.print("请求路径:" + uri + "<br/>");
%>
</body>
</html>
